<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Digital diary - share your upcoming plan and acquire prestige</title>
    </h:head>
    <h:body>
        <ui:composition template="./templates/basetemplate.xhtml">
            <ui:define name="content">
                <h:form styleClass="into" >                        
                    <div class="left">
                        <h1 style="color: #1c94c4">#{msg1.bodyText_h1} </h1>
                    </div>
                    <div class="right">        
                        <fieldset>
                            <legend>#{msg1.loginText}</legend>
                            
                            <p:messages id="messages" autoUpdate="true" showDetail="true" />
                            <table>
                                <tr>
                                    <td><h:outputLabel value="#{msg1.inputField_username}"></h:outputLabel></td>
                                    <td><p:inputText id="userName" value="#{loginHandler.userName}"></p:inputText></td>
                                    
                                </tr>
                                <tr>
                                    <td><h:outputLabel value="#{msg1.inputField_password}"></h:outputLabel></td>
                                    <td><p:inputText id="password" type="password" value="#{loginHandler.password}"></p:inputText></td>
                                    
                                </tr>
                                <tr>
                                    <td></td>
                                    <td style="text-align: right">
                                        <p:commandButton  id="loggedIn" value="Login" action="#{loginHandler.login1()}" />
                                    </td>
                                    
                                </tr>
                            </table>
                            <p>#{msg1.bodyText_p}</p>
                            <a href="/DigitalDiary/faces/signup.xhtml" >#{msg1.signupText}</a>
                        </fieldset>
                    </div>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

